:root {
  --primary: #3182ce;
  --primary-light: #ebf8ff;
  --primary-dark: #2c5282;
  --text: #2d3748;
  --text-light: #4a5568;
  --text-muted: #718096;
  --bg: #f8f9fa;
  --bg-card: #ffffff;
  --border: #edf2f7;
  --border-hover: #e2e8f0;
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --radius: 12px;
  --radius-sm: 6px;
  
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  font-weight: 400;
  
  color: var(--text);
  background-color: var(--bg);
  
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--text);
  transition: background-color 0.2s ease, color 0.2s ease;
}

a {
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
  position: relative;
}

a:hover {
  color: var(--primary-dark);
}

a:hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--primary-dark);
  transform: scaleX(0.7);
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text);
  margin-bottom: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

button {
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 0.6em 1.2em;
  font-size: 0.95em;
  font-weight: 500;
  font-family: inherit;
  background-color: var(--primary);
  color: white;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-1px);
}

button:focus,
button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.3);
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 20px;
  margin-bottom: 20px;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

#app {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* 过渡动画 */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 3px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

/* Element Plus 组件样式覆盖 */
.el-button--primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.el-button--primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.el-card {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
  overflow: hidden;
}

.el-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-hover);
}

.el-table {
  border-radius: var(--radius);
  overflow: hidden;
}

.el-pagination {
  margin-top: 20px;
  justify-content: flex-end;
}

/* 响应式调整 */
@media (max-width: 768px) {
  :root {
    --radius: 8px;
  }
  
  #app {
    padding: 1rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
}